/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-11-02
 * Time: 10:37
 */
public class Super {

        public int i = 0;

        public Super(String text){

            i = 1;

        }

    public Super() {
    }
}

    class Sub extends Super{

        public Sub(String text){

            i = 2;

        }

        public static void main(String[] args){

            Sub sub = new Sub("Hello");

            System.out.println(sub.i);

        }

    }



